#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "student.h"
#include "teacher.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void emit_test_signal();
    void emit_study_signal();
signals:
    void my_test_signals(); //信号声明
private slots:
    void my_slots(); //槽声明
private slots:
    void on_pushButton_clicked();

private:
    Ui::Widget *ui;
    Teacher *tch;  //发送信号对象
    student *stu;  //接收信号对象
};
#endif // WIDGET_H
